<!--包含头部文件-->
{include file="public/_meta" /}
<title>城市列表</title>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 城市管理 <span class="c-gray en">&gt;</span> 城市管理 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
	<div class="cl pd-5 bg-1 bk-gray mt-20"> <span class="l"> <a class="btn btn-primary radius" onclick="picture_add('添加分类','{:url('city/add')}')" href="javascript:;"><i class="Hui-iconfont">&#xe600;</i> 添加分类</a></span> <span class="r">共有数据：<strong>{$count}</strong> 条</span> </div>
	<div class="mt-20">
		<table class="table table-border table-bordered table-bg table-hover table-sort">
			<thead>
				<tr class="text-c">
					<th width="80">ID</th>
					<th>名称</th>
					<th>拼音</th>
					<th width="100">父级分类</th>
					<th width="80">排序</th>
					<th width="150">创建时间</th>
					<th width="60">状态</th>
					<th>查看子类</th>
					<th width="150">操作</th>
				</tr>
			</thead>
			<tbody>
				{volist name="cities" id="vo"}
				<tr class="text-c">
					<td>{$vo.id}</td>
					<td>{$vo.name}</td>
					<td>{$vo.uname}</td>
					<td>{$vo.parent_id|getParentCityById}</td>
					<td>{$vo.listoder}</td>
					<td>{$vo.create_time}</td>
					<td class="td-status">{$vo.status|getStatus}</td>
					{if condition="$vo.parent_id==0"}
					<td><a href="{:url('city/index',['parent_id'=>$vo.id])}">查看子栏目</a></td>
					{else}<td>无</td>{/if}
					<td class="td-manage">
						{if condition="$vo.status eq 1"}
						<a style="text-decoration:none" onClick="picture_stop(this,'{$vo.id}')" href="javascript:;" title="下架"><i class="Hui-iconfont">&#xe6de;</i></a>
						{else}
						<a style="text-decoration:none" onClick="picture_start(this,'{$vo.id}')" href="javascript:;" title="发布"><i class="Hui-iconfont">&#xe603;</i></a>
						{/if}
						<a style="text-decoration:none" class="ml-5" onClick="picture_edit('编辑','{:url('city/edit',['id'=>$vo.id])}','10001')" href="javascript:;" title="编辑"><i class="Hui-iconfont">&#xe6df;</i></a>
						<a style="text-decoration:none" class="ml-5" onClick="picture_del(this,'{$vo.id}')" href="javascript:;" title="删除"><i class="Hui-iconfont">&#xe6e2;</i></a>
					</td>
				</tr>
                {/volist}
			</tbody>
		</table>
	</div>
</div>

<!--_footer 作为公共模版分离出去-->
{include file="public/_footer"}
<!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<!--<script type="text/javascript" src="lib/datatables/1.10.0/jquery.dataTables.min.js"></script>-->
<!--<script type="text/javascript" src="lib/laypage/1.2/laypage.js"></script>-->
<script type="text/javascript" src="__STATIC__/admin/js/common.js"></script>
<script type="text/javascript">
var SCOPE = {
    "status_url":"{:url('city/status')}"
};

</script>
</body>
</html>